import { QuestionCollection } from "inquirer";
import { printCode } from "../utils/code";

const questions: QuestionCollection = [
  {
    type: "input",
    name: "username",
    message: "What's your username",
    default: 'admin',
  },
  {
    type: "password",
    name: "password",
    message: "Enter a password",
    default: '123456',
  },
  {
    type: "input",
    name: "code",
    message: async function () {
      return await printCode();
    },
    default: function () {
      return 0;
    },
  },
];

export { questions };
